﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Summary description for cls_tbResultCode
/// </summary>
public class cls_tbResultCode
{
	public cls_tbResultCode()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public static string Update(string result)
    {
        DatabaseConnect connect = new DatabaseConnect();
        // Tham so
        SqlParameter[] para = new SqlParameter[1];
        para[0] = new SqlParameter("@result", result);
        


        try
        {
            connect.ExecuteQuery("tbResultCode_update", para);
            return "OK";
        }
        catch (Exception ex)
        {
            return ex.Message;
            //return "ERR"; 
        }
    }
}